package com.dst;

import com.dst.dao.AuctionMapper;
import com.dst.entity.Auction;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;
import java.util.List;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = AuctionApplication.class)
public class test {
  @Resource
  private AuctionMapper auctionMapper;
  @Test
  public void hh(){
    List<Auction> auctions = auctionMapper.selectList(null);
    auctions.forEach(System.out::println);
  }
}
